package com.cy.detectsys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName db_certificationdomain
 */
@TableName(value ="db_certificationdomain")
@Data
public class DbCertificationdomain implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    private String kyEdCertificationdomainSubjectC;

    /**
     * 
     */
    private String kyEdCertificationdomainSubjectSt;

    /**
     * 
     */
    private String kyEdCertificationdomainSubjectL;

    /**
     * 
     */
    private String kyEdCertificationdomainSubjectO;

    /**
     * 
     */
    private String kyEdCertificationdomainSubjectCn;

    /**
     * 
     */
    private String kyEdCertificationdomainIssuerC;

    /**
     * 
     */
    private String kyEdCertificationdomainIssuerO;

    /**
     * 
     */
    private String kyEdCertificationdomainIssuerCn;

    /**
     * 
     */
    private Integer kyEdCertificationdomainHasExpired;

    /**
     * 
     */
    private Date kyEdCertificationdomainNotAfter;

    /**
     * 
     */
    private Date kyEdCertificationdomainNotBefore;

    /**
     * 
     */
    private String kyEdCertificationdomainSerialNumber;

    /**
     * 
     */
    private String kyEdCertificationdomainSerialNumberHex;

    /**
     * 
     */
    private String kyEdCertificationdomainSignatureAlgorithm;

    /**
     * 
     */
    private Integer kyEdCertificationdomainVersion;

    /**
     * 
     */
    private Integer kyEdCertificationdomainPulicKeyLength;

    /**
     * 
     */
    private String kyEdCertificationdomainAuthoritykeyidentifier;

    /**
     * 
     */
    private String kyEdCertificationdomainSubjectkeyidentifier;

    /**
     * 
     */
    private String kyEdCertificationdomainSubjectaltname;

    /**
     * 
     */
    private String kyEdCertificationdomainKeyusage;

    /**
     * 
     */
    private String kyEdCertificationdomainExtendedkeyusage;

    /**
     * 
     */
    private String kyEdCertificationdomainCrldistributionpoints;

    /**
     * 
     */
    private String kyEdCertificationdomainCertificatepolicies;

    /**
     * 
     */
    private String kyEdCertificationdomainAuthorityinfoaccess;

    /**
     * 
     */
    private String kyEdCertificationdomainBasicconstraints;

    /**
     * 
     */
    private String kyEdCertificationdomainCtPrecertScts;

    /**
     * 
     */
    private String createUser;

    /**
     * 
     */
    private Date createTime;

    /**
     * 
     */
    private String updateUser;

    /**
     * 
     */
    private Date updateTime;

    /**
     * 
     */
    private Integer deleted;

    /**
     * 
     */
    private String kyEdCertificationdomainIp;

    /**
     * 
     */
    private String kyEdCertificationdomainPort;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DbCertificationdomain other = (DbCertificationdomain) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getKyEdCertificationdomainSubjectC() == null ? other.getKyEdCertificationdomainSubjectC() == null : this.getKyEdCertificationdomainSubjectC().equals(other.getKyEdCertificationdomainSubjectC()))
            && (this.getKyEdCertificationdomainSubjectSt() == null ? other.getKyEdCertificationdomainSubjectSt() == null : this.getKyEdCertificationdomainSubjectSt().equals(other.getKyEdCertificationdomainSubjectSt()))
            && (this.getKyEdCertificationdomainSubjectL() == null ? other.getKyEdCertificationdomainSubjectL() == null : this.getKyEdCertificationdomainSubjectL().equals(other.getKyEdCertificationdomainSubjectL()))
            && (this.getKyEdCertificationdomainSubjectO() == null ? other.getKyEdCertificationdomainSubjectO() == null : this.getKyEdCertificationdomainSubjectO().equals(other.getKyEdCertificationdomainSubjectO()))
            && (this.getKyEdCertificationdomainSubjectCn() == null ? other.getKyEdCertificationdomainSubjectCn() == null : this.getKyEdCertificationdomainSubjectCn().equals(other.getKyEdCertificationdomainSubjectCn()))
            && (this.getKyEdCertificationdomainIssuerC() == null ? other.getKyEdCertificationdomainIssuerC() == null : this.getKyEdCertificationdomainIssuerC().equals(other.getKyEdCertificationdomainIssuerC()))
            && (this.getKyEdCertificationdomainIssuerO() == null ? other.getKyEdCertificationdomainIssuerO() == null : this.getKyEdCertificationdomainIssuerO().equals(other.getKyEdCertificationdomainIssuerO()))
            && (this.getKyEdCertificationdomainIssuerCn() == null ? other.getKyEdCertificationdomainIssuerCn() == null : this.getKyEdCertificationdomainIssuerCn().equals(other.getKyEdCertificationdomainIssuerCn()))
            && (this.getKyEdCertificationdomainHasExpired() == null ? other.getKyEdCertificationdomainHasExpired() == null : this.getKyEdCertificationdomainHasExpired().equals(other.getKyEdCertificationdomainHasExpired()))
            && (this.getKyEdCertificationdomainNotAfter() == null ? other.getKyEdCertificationdomainNotAfter() == null : this.getKyEdCertificationdomainNotAfter().equals(other.getKyEdCertificationdomainNotAfter()))
            && (this.getKyEdCertificationdomainNotBefore() == null ? other.getKyEdCertificationdomainNotBefore() == null : this.getKyEdCertificationdomainNotBefore().equals(other.getKyEdCertificationdomainNotBefore()))
            && (this.getKyEdCertificationdomainSerialNumber() == null ? other.getKyEdCertificationdomainSerialNumber() == null : this.getKyEdCertificationdomainSerialNumber().equals(other.getKyEdCertificationdomainSerialNumber()))
            && (this.getKyEdCertificationdomainSerialNumberHex() == null ? other.getKyEdCertificationdomainSerialNumberHex() == null : this.getKyEdCertificationdomainSerialNumberHex().equals(other.getKyEdCertificationdomainSerialNumberHex()))
            && (this.getKyEdCertificationdomainSignatureAlgorithm() == null ? other.getKyEdCertificationdomainSignatureAlgorithm() == null : this.getKyEdCertificationdomainSignatureAlgorithm().equals(other.getKyEdCertificationdomainSignatureAlgorithm()))
            && (this.getKyEdCertificationdomainVersion() == null ? other.getKyEdCertificationdomainVersion() == null : this.getKyEdCertificationdomainVersion().equals(other.getKyEdCertificationdomainVersion()))
            && (this.getKyEdCertificationdomainPulicKeyLength() == null ? other.getKyEdCertificationdomainPulicKeyLength() == null : this.getKyEdCertificationdomainPulicKeyLength().equals(other.getKyEdCertificationdomainPulicKeyLength()))
            && (this.getKyEdCertificationdomainAuthoritykeyidentifier() == null ? other.getKyEdCertificationdomainAuthoritykeyidentifier() == null : this.getKyEdCertificationdomainAuthoritykeyidentifier().equals(other.getKyEdCertificationdomainAuthoritykeyidentifier()))
            && (this.getKyEdCertificationdomainSubjectkeyidentifier() == null ? other.getKyEdCertificationdomainSubjectkeyidentifier() == null : this.getKyEdCertificationdomainSubjectkeyidentifier().equals(other.getKyEdCertificationdomainSubjectkeyidentifier()))
            && (this.getKyEdCertificationdomainSubjectaltname() == null ? other.getKyEdCertificationdomainSubjectaltname() == null : this.getKyEdCertificationdomainSubjectaltname().equals(other.getKyEdCertificationdomainSubjectaltname()))
            && (this.getKyEdCertificationdomainKeyusage() == null ? other.getKyEdCertificationdomainKeyusage() == null : this.getKyEdCertificationdomainKeyusage().equals(other.getKyEdCertificationdomainKeyusage()))
            && (this.getKyEdCertificationdomainExtendedkeyusage() == null ? other.getKyEdCertificationdomainExtendedkeyusage() == null : this.getKyEdCertificationdomainExtendedkeyusage().equals(other.getKyEdCertificationdomainExtendedkeyusage()))
            && (this.getKyEdCertificationdomainCrldistributionpoints() == null ? other.getKyEdCertificationdomainCrldistributionpoints() == null : this.getKyEdCertificationdomainCrldistributionpoints().equals(other.getKyEdCertificationdomainCrldistributionpoints()))
            && (this.getKyEdCertificationdomainCertificatepolicies() == null ? other.getKyEdCertificationdomainCertificatepolicies() == null : this.getKyEdCertificationdomainCertificatepolicies().equals(other.getKyEdCertificationdomainCertificatepolicies()))
            && (this.getKyEdCertificationdomainAuthorityinfoaccess() == null ? other.getKyEdCertificationdomainAuthorityinfoaccess() == null : this.getKyEdCertificationdomainAuthorityinfoaccess().equals(other.getKyEdCertificationdomainAuthorityinfoaccess()))
            && (this.getKyEdCertificationdomainBasicconstraints() == null ? other.getKyEdCertificationdomainBasicconstraints() == null : this.getKyEdCertificationdomainBasicconstraints().equals(other.getKyEdCertificationdomainBasicconstraints()))
            && (this.getKyEdCertificationdomainCtPrecertScts() == null ? other.getKyEdCertificationdomainCtPrecertScts() == null : this.getKyEdCertificationdomainCtPrecertScts().equals(other.getKyEdCertificationdomainCtPrecertScts()))
            && (this.getCreateUser() == null ? other.getCreateUser() == null : this.getCreateUser().equals(other.getCreateUser()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateUser() == null ? other.getUpdateUser() == null : this.getUpdateUser().equals(other.getUpdateUser()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
            && (this.getKyEdCertificationdomainIp() == null ? other.getKyEdCertificationdomainIp() == null : this.getKyEdCertificationdomainIp().equals(other.getKyEdCertificationdomainIp()))
            && (this.getKyEdCertificationdomainPort() == null ? other.getKyEdCertificationdomainPort() == null : this.getKyEdCertificationdomainPort().equals(other.getKyEdCertificationdomainPort()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getKyEdCertificationdomainSubjectC() == null) ? 0 : getKyEdCertificationdomainSubjectC().hashCode());
        result = prime * result + ((getKyEdCertificationdomainSubjectSt() == null) ? 0 : getKyEdCertificationdomainSubjectSt().hashCode());
        result = prime * result + ((getKyEdCertificationdomainSubjectL() == null) ? 0 : getKyEdCertificationdomainSubjectL().hashCode());
        result = prime * result + ((getKyEdCertificationdomainSubjectO() == null) ? 0 : getKyEdCertificationdomainSubjectO().hashCode());
        result = prime * result + ((getKyEdCertificationdomainSubjectCn() == null) ? 0 : getKyEdCertificationdomainSubjectCn().hashCode());
        result = prime * result + ((getKyEdCertificationdomainIssuerC() == null) ? 0 : getKyEdCertificationdomainIssuerC().hashCode());
        result = prime * result + ((getKyEdCertificationdomainIssuerO() == null) ? 0 : getKyEdCertificationdomainIssuerO().hashCode());
        result = prime * result + ((getKyEdCertificationdomainIssuerCn() == null) ? 0 : getKyEdCertificationdomainIssuerCn().hashCode());
        result = prime * result + ((getKyEdCertificationdomainHasExpired() == null) ? 0 : getKyEdCertificationdomainHasExpired().hashCode());
        result = prime * result + ((getKyEdCertificationdomainNotAfter() == null) ? 0 : getKyEdCertificationdomainNotAfter().hashCode());
        result = prime * result + ((getKyEdCertificationdomainNotBefore() == null) ? 0 : getKyEdCertificationdomainNotBefore().hashCode());
        result = prime * result + ((getKyEdCertificationdomainSerialNumber() == null) ? 0 : getKyEdCertificationdomainSerialNumber().hashCode());
        result = prime * result + ((getKyEdCertificationdomainSerialNumberHex() == null) ? 0 : getKyEdCertificationdomainSerialNumberHex().hashCode());
        result = prime * result + ((getKyEdCertificationdomainSignatureAlgorithm() == null) ? 0 : getKyEdCertificationdomainSignatureAlgorithm().hashCode());
        result = prime * result + ((getKyEdCertificationdomainVersion() == null) ? 0 : getKyEdCertificationdomainVersion().hashCode());
        result = prime * result + ((getKyEdCertificationdomainPulicKeyLength() == null) ? 0 : getKyEdCertificationdomainPulicKeyLength().hashCode());
        result = prime * result + ((getKyEdCertificationdomainAuthoritykeyidentifier() == null) ? 0 : getKyEdCertificationdomainAuthoritykeyidentifier().hashCode());
        result = prime * result + ((getKyEdCertificationdomainSubjectkeyidentifier() == null) ? 0 : getKyEdCertificationdomainSubjectkeyidentifier().hashCode());
        result = prime * result + ((getKyEdCertificationdomainSubjectaltname() == null) ? 0 : getKyEdCertificationdomainSubjectaltname().hashCode());
        result = prime * result + ((getKyEdCertificationdomainKeyusage() == null) ? 0 : getKyEdCertificationdomainKeyusage().hashCode());
        result = prime * result + ((getKyEdCertificationdomainExtendedkeyusage() == null) ? 0 : getKyEdCertificationdomainExtendedkeyusage().hashCode());
        result = prime * result + ((getKyEdCertificationdomainCrldistributionpoints() == null) ? 0 : getKyEdCertificationdomainCrldistributionpoints().hashCode());
        result = prime * result + ((getKyEdCertificationdomainCertificatepolicies() == null) ? 0 : getKyEdCertificationdomainCertificatepolicies().hashCode());
        result = prime * result + ((getKyEdCertificationdomainAuthorityinfoaccess() == null) ? 0 : getKyEdCertificationdomainAuthorityinfoaccess().hashCode());
        result = prime * result + ((getKyEdCertificationdomainBasicconstraints() == null) ? 0 : getKyEdCertificationdomainBasicconstraints().hashCode());
        result = prime * result + ((getKyEdCertificationdomainCtPrecertScts() == null) ? 0 : getKyEdCertificationdomainCtPrecertScts().hashCode());
        result = prime * result + ((getCreateUser() == null) ? 0 : getCreateUser().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateUser() == null) ? 0 : getUpdateUser().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
        result = prime * result + ((getKyEdCertificationdomainIp() == null) ? 0 : getKyEdCertificationdomainIp().hashCode());
        result = prime * result + ((getKyEdCertificationdomainPort() == null) ? 0 : getKyEdCertificationdomainPort().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", kyEdCertificationdomainSubjectC=").append(kyEdCertificationdomainSubjectC);
        sb.append(", kyEdCertificationdomainSubjectSt=").append(kyEdCertificationdomainSubjectSt);
        sb.append(", kyEdCertificationdomainSubjectL=").append(kyEdCertificationdomainSubjectL);
        sb.append(", kyEdCertificationdomainSubjectO=").append(kyEdCertificationdomainSubjectO);
        sb.append(", kyEdCertificationdomainSubjectCn=").append(kyEdCertificationdomainSubjectCn);
        sb.append(", kyEdCertificationdomainIssuerC=").append(kyEdCertificationdomainIssuerC);
        sb.append(", kyEdCertificationdomainIssuerO=").append(kyEdCertificationdomainIssuerO);
        sb.append(", kyEdCertificationdomainIssuerCn=").append(kyEdCertificationdomainIssuerCn);
        sb.append(", kyEdCertificationdomainHasExpired=").append(kyEdCertificationdomainHasExpired);
        sb.append(", kyEdCertificationdomainNotAfter=").append(kyEdCertificationdomainNotAfter);
        sb.append(", kyEdCertificationdomainNotBefore=").append(kyEdCertificationdomainNotBefore);
        sb.append(", kyEdCertificationdomainSerialNumber=").append(kyEdCertificationdomainSerialNumber);
        sb.append(", kyEdCertificationdomainSerialNumberHex=").append(kyEdCertificationdomainSerialNumberHex);
        sb.append(", kyEdCertificationdomainSignatureAlgorithm=").append(kyEdCertificationdomainSignatureAlgorithm);
        sb.append(", kyEdCertificationdomainVersion=").append(kyEdCertificationdomainVersion);
        sb.append(", kyEdCertificationdomainPulicKeyLength=").append(kyEdCertificationdomainPulicKeyLength);
        sb.append(", kyEdCertificationdomainAuthoritykeyidentifier=").append(kyEdCertificationdomainAuthoritykeyidentifier);
        sb.append(", kyEdCertificationdomainSubjectkeyidentifier=").append(kyEdCertificationdomainSubjectkeyidentifier);
        sb.append(", kyEdCertificationdomainSubjectaltname=").append(kyEdCertificationdomainSubjectaltname);
        sb.append(", kyEdCertificationdomainKeyusage=").append(kyEdCertificationdomainKeyusage);
        sb.append(", kyEdCertificationdomainExtendedkeyusage=").append(kyEdCertificationdomainExtendedkeyusage);
        sb.append(", kyEdCertificationdomainCrldistributionpoints=").append(kyEdCertificationdomainCrldistributionpoints);
        sb.append(", kyEdCertificationdomainCertificatepolicies=").append(kyEdCertificationdomainCertificatepolicies);
        sb.append(", kyEdCertificationdomainAuthorityinfoaccess=").append(kyEdCertificationdomainAuthorityinfoaccess);
        sb.append(", kyEdCertificationdomainBasicconstraints=").append(kyEdCertificationdomainBasicconstraints);
        sb.append(", kyEdCertificationdomainCtPrecertScts=").append(kyEdCertificationdomainCtPrecertScts);
        sb.append(", createUser=").append(createUser);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateUser=").append(updateUser);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", deleted=").append(deleted);
        sb.append(", kyEdCertificationdomainIp=").append(kyEdCertificationdomainIp);
        sb.append(", kyEdCertificationdomainPort=").append(kyEdCertificationdomainPort);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}